{extend name="common/base" /}
<!--title-->
{block name="titlekeyword"}
<title>{$content}</title>

{/block}
<!--代码主要内容-->
{block name="main"}
<h6>内容</h6>
<span id="myspan"></span>
<input type="button" onclick="test()" value="测试" />
<h6>代码</h6>
<pre>
		页面

		&lt;span id="myspan"&gt;&lt;/span&gt;
		&lt;input type="button" onclick="test()" value="测试" /&gt;
		
		js
		&lt;script language="javascript"&gt;
			function test() {
				document.getElementById("myspan").innerText = "&lt;a href='http://www.sohu.com'&gt;到sohu&lt;/a&gt;";
			}
		&lt;/script&gt;
		

	 </pre> {/block}
<!--底部js 在这里是js的实际代码区-->
{block name="footjs"}
<script language="javascript">
	function test() {
		document.getElementById("myspan").innerText = "<a href='http://www.sohu.com'>到sohu</a>";
	}
</script> {/block}